package com.appspot.bibtable.model.format;

import com.appspot.bibtable.util.HtmlUtility;

public class HtmlEncodeFormatter extends OutputFormatter
{
	@Override
	public String format(Object object)
	{
		if (object == null)
		{
			return null;
		}
		String rawString = object.toString();
		return HtmlUtility.encode(rawString);
	}
}
